.chat-container {
  height: 100%;
  overflow-y: auto;
  padding: 0 18px;
}

.messages {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}

.input-panel-box {
  width: 100%;
  position: sticky;
  bottom: 0;
}

.input-panel {
  position: sticky;
  bottom: 0;
  width: 100%;
  max-width: 800px;
}

.input-panel-box::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background-image: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.scroll-button-box {
  position: relative;
}

.scroll-button {
  position: absolute;
  bottom: 10px;
  z-index: 20;
}

@media (max-width: 768px) {
  .chat-container::-webkit-scrollbar {
    display: none;
  }
}